Optical signature of Weyl electronic structures in tantalum pnictides TaPn (Pn = P, As)