Matrix convex functions with applications to weighted centers for semidefinite programming