Vibrational frequency and coordination of molecular oxygen in surface and inorganic complexes