A clever physics trick can reveal if your egg is hard boiled