A supercharacter theory for the Sylow $p$-subgroups of the finite symplectic and orthogonal groups