Detection of genuine multipartite entanglement based on principal basis matrix representations