A photon-like wavepacket with quantised properties based on classical Maxwell's equations