Explosive branching processes and their applications to epidemics and distances in power-law random graphs