3D printing of bioinspired compartmentalized capsular structure for controlled drug release