Tata Power net profit rises to Rs 1,017 crore in Q2