3D printing of stimuli-responsive materials to fabricate 4D objects