Solomon Islands elects former diplomat who signed China security pact as PM