Software for monitoring pantograph-catenary interaction via a phototube sensor