Collisional excitation of interstellar molecules - Linear molecules CO, CS, OCS, and HC3N