Integral points on convex curves