The impact of public acceptance on cost efficiency and environmental sustainability in decentralized energy systems