Response utility in classical and operant conditioning