Text this: A novel peak shaving algorithm for islanded microgrid using battery energy storage system