Method for operating a DC voltage grid and power converter for connecting a DC voltage grid to an AC voltage grid