Model of Ammonia and Carbon Oxidation in Biofilms