Spectral characterization of some cubic graphs