An in-depth view of selected aspects of energy, electricity grids and related technologies