Padé approximants on Riemann surfaces and KP tau functions