High-pressure studies of ferroelectric phases related to the earth and planetary interiors