Foxconn, the largest assembler of Apple’s iPhone, said it expects a rise in second-quarter sales as the smartphone market rebounds.