Exact and Monte Carlo study of adsorption of a self-interacting polymer chain for a family of three-dimensional fractals