Symmetries in mirror nuclei 31S and 31P