Baked pasta with ham and peas