Which two factors allow rocks to bend or fold without melting?