Experimental and theoretical energetics of walking molecular motors under fluctuating environments