Bell inequality, Bell states and maximally entangled states for n qubits