Predicting the capsid architecture of phages from metagenomic data