Versatile fabrication of magnetic superhydrophobic foams and application for oil–water separation