Energy loss in low energy nuclear recoils in dark matter detector materials