Theory of spontaneous emission noise in multisection semiconductor lasers