Experimental method for measuring classical negativity of generic beam shapes