Theory of local optical spectroscopy of quantum wires with interface fluctuations