Response functions and contribution functions of photospheric lines