Optimal integration of renewable sources and latent heat storages for residential application