Testing density functionals for structural phase transitions of solids under pressure: Si, SiO2, and Zr