Shape-aware Safe Corridors Generation using Voxel Grids