Constructing framed 4-manifolds with given almost framed boundaries