Entanglement witnesses for a class of bipartite states of n x n qubits