Pennsylvania cop arrested for improperly committing ex-girlfriend to mental facility: DA