Theory and practice of microlensing light curves around fold singularities