Upper bounds on success probabilities in linear optics