Pion-muon separation with a RICH prototype for the NA62 experiment