Energy scaling, size effects and ductile-brittle transitions in fracture