On the basic reproduction number in continuously structured populations