Late goals seal dramatic victory for Bayern against St Pauli