Civic Coalition expected to have got fewer votes than ruling Law and Justice party but is likely to ally with other parties