A model for the electrical and magnetic properties of amorphous carbons based on fullerene-type structures†