Semi-global extension of maximally complex submanifolds