Investigating the integration of renewable energy systems in buildings and their impact on energy consumption