BP prepares for year-long trial over Gulf spill