Logic gates in excitable media