The Swedish city of Gothenburg has put itself in the unusual situation of being fined for missing environmental targets.