Andrew Bogut agrees to a one-year deal with the Lakers