Charge ordering in La1.8-xEu0.2SrxCuO4 studied by resonant soft x-ray diffraction