Gilroy brace helps Ulster qualify for Europe