Generic function of calculating the second moment of components of the mixture
comp_mean2(m)
m
a mixture of k components generated by normalmix() or unimix() or igmix()
it returns a vector of second moments.