Co-pyrolysis of biomass with magnesium and phosphorus: effect of magnesium content on phosphate release from biochar-based fertilizers