Development of a low-cost pH sensor based on plastic optical fibers