Biomass quality analysis for power generation