Synthesis and application of epoxy-ended hyperbranched polymers