Labor has claimed victory in the South Australian election with Premier Peter Malinauskas elected for a second term.