An invariance principle for stationary random fields under Hannan's condition