how does biomass energy generate electricity in farms