Theoretical investigation of the structural, electronic, dynamical and thermal properties of YSn3 and YPb3