Out-of-plane structural flexibility of phosphorene