Automatic footprint detection approach for the calculation of arch index and plantar pressure in a flat rubber pad