Walid Saadaoui confided to an undercover agent called Farouk and mimicked the sound of automatic gunfire, a jury has been told