Structures and vibrational frequencies of FOOF and FONO using density functional theory