Heuristics and bounds for photonic design