Reconstructing the meridional overturning circulation from boundary densities and the zonal wind stress