Selective Removal of Phosphorus from Wastewater Combined with Its Recovery as a Solid-Phase Fertilizer