added to_xml and from_xml functions in InspireMetadata

also separated denominators from spatial_resolution common class