Home prices post biggest gain in more than 7 years