General synthesis of discrete mesoporous carbon microspheres through a confined self-assembly process in inverse opals.