Magnetic topology of Co-based inverse opal-like structures