Rare decays of neutral kaons with the NA48 experiment