On function-theoretic conditions characterizing compact composition operators on H^2