Bounded KRnet and its applications to density estimation and approximation