How the Layer Alignment in Two-dimensional Nanoporous Covalent Organic Frameworks Impacts Its Electronic Properties