Indian shares open higher with IT, energy companies gaining the most