On silver and golden optical orthogonal codes