Virtual reference interferometry: theory and experiment