Applying squeezed states to nonideal interferometers