Karnataka agrees to release 25 TMC water to Telangana