Capacities of linear quantum optical systems