Biogas from human waste has the potential to generate electricity for millions of homes while improving health and protecting the environment, according to a UN report.