Effects of friction on ladder safety