When can classical neural networks represent quantum states?