Self-avoiding walks with curvature energy on fractals