Effective Hamiltonians for phosphorene and silicene