Universal linear-optical quantum device: experimental implementation