Interaction of a three-level atom and a field with a time-varying frequency in the context of triangular well potentials: An exact treatment