Subband structures and wave functions of electrons in quantum wires and in‐plane superlattices consisting of grid‐inserted quantum‐well structures