Statistics for Visible light positioning systems: fundamental limits, algorithms and resource allocation approaches