Single molecule studies of DNA bending, looping and compacting proteins using optical tweezers and atomic force microscopy