Optically-triggered deterministic spiking regimes in nanostructure resonant tunnelling diode-photodetectors