Tilting preenvelopes and cotilting precovers