Passively Q-switching induced by gold nanocrystals