An optical technique for remote focusing in microscopy