A transformation technique for optimal control problems with partially linear state inequality constraints