Analysis and construction of a family of refinable functions based on generalized Bernstein polynomials