A new family of means: the generalized weighted power means and applications