Brogden, Pacers agree on $45 million extension