Software-based solutions for the optimization of a building electric bill using integrated PV and storage systems: a case study