Experimental test of a trace formula for two-dimensional dielectric resonators