Toyota will be able to build 7,000 cars a year using solar energy at its factory in the UK.