A course on nonlinear fracture mechanics