Diffraction of a Bose-Einstein condensate from a magnetic lattice on a microchip.