When is a verb followed by a gerund, and when is it followed by an infinitive?