Increasing efficiency of a linear-optical quantum gate using electronic feed-forward