Optimal resource allocation for non-real time visible light communication networks