Molecular basis of conformational changes and mechanics of integrins