what is the function of a viral capsid