Mapping the dark matter with weak gravitational lensing