Apple ends deal with Imagination Technologies, share prices tumble